﻿using System;
using System.Linq;
using System.Collections.ObjectModel;

using Microsoft.Practices.Prism.ViewModel;

namespace Finance.UI.ViewModels
{
    public class SettingPageViewModel : NotificationObject
    {
        private ObservableCollection<SettingItemViewModel> _ConfigGroups;
        public ObservableCollection<SettingItemViewModel> ConfigGroups
        {
            get
            {
                return _ConfigGroups;
            }
            set
            {
                _ConfigGroups = value;
                RaisePropertyChanged("ConfigGroups");
            }
        }

        public SettingPageViewModel(params SettingItemViewModel[] items)
        {
            _ConfigGroups = new ObservableCollection<SettingItemViewModel>();
            foreach (var item in items)
            {
                _ConfigGroups.Add(item);
            }
        }
    }
}
